package com.wskeee.ec.utils
{
	import flash.display.DisplayObject;
	import flash.geom.Matrix;
	import flash.geom.Rectangle;
	import flash.geom.Transform;

	public class DisplayObjectUitl
	{
		public static function getFullBounds(displayObject : DisplayObject):Rectangle
		{
			var transform:Transform = displayObject.transform;
			var currentMatrix:Matrix = transform.matrix;
			var toGlobalMatrix:Matrix = transform.concatenatedMatrix;
			toGlobalMatrix.invert();
			transform.matrix = toGlobalMatrix;
			var rect:Rectangle = transform.pixelBounds.clone();
			transform.matrix = currentMatrix;
			return rect;
		}
	}
}